package com.knoya.chejian.pda.module.zupanchaxun

import android.content.Context
import com.knoya.chejian.pda.contacts.Contacts
import com.knoya.chejian.pda.minterface.OnUserDataInterface
import com.knoya.chejian.pda.module.zupan.ZupanBean
import com.knoya.chejian.pda.util.HttpUtil
import org.xutils.http.RequestParams
import org.xutils.x

class ZupanChakanM {
     fun getPanOnum(context : Context , pallet : String, pcode : String, onuserdatainterface : OnUserDataInterface){
         val params = RequestParams(Contacts.ZUPAN_CHAXUN)
         HttpUtil.getparams(context, params)
         HttpUtil.addtoken(params)
         params.addBodyParameter("pallet_num", pallet, Contacts.BOUNDARY)
         params.addBodyParameter("pcode", pcode, Contacts.BOUNDARY)
         x.http().post<String>(params, HttpUtil.Call(context, onuserdatainterface))
    }


}